Scale
Simple node for scaling image.
Node Data | |
|---|---|
Display name | |
Scale | |
Internal name | |
Node_Scale | |
Inheritances | |
| Node_Processor | |
| Node_Scale | |
Inputs | |
Surfaces | |
surface |
Surface In |
Scale | |
enum |
Mode |
float |
Scale |
vec2 |
Target Dimension |
enum |
Fit Mode |
bool |
Move Atlas |
Outputs | |
surface |
Surface Out |
Attributes | |
| Color Depth | |
| Interpolation | |
Scale surface. A simplified transform node with option for fitting surface to a fix dimension.
Properties
| Scale | |
| Mode | Scale mode: - Upscale: Multiply dimension by a number. - Scale to Size: Scale surface to fit fix dimension. |
| Fit Mode | Scaling method for Scale to Size mode. - Stretch: Scale surface non-uniformly to fix the Target Dimension. - Keep Aspect Minimum: Keep the aspect ratio of the original surface, scale to fit inside the Target Dimension. - Keep Aspect Maximum: Keep the aspect ratio of the original surface, scale to cover the whole Target Dimension. |
| Move Atlas | When inputting Atlas data. Whether to scale the atlas position as well. |
Related Links
- Base Code: /scripts/node_scale/node_scale.gml
- Shader [sh_scale]: /shaders/sh_scale/sh_scale.fsh